package com.xhsj.user.sms.purchase.query;

import com.xhsj.user.sms.purchase.entity.TbPurchaseOrder;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author suxiaolin
 * @date 2020/6/9 14:49
 */
@Data
public class TbPurchaseOrderListQuery {
    @NotBlank(message = "采购任务id不能为空")
    private String purchaseTaskId;

    private String processTaskId;// 流程id

    /**
     * 提交状态 1 保存 2 提交
     */
    @NotNull(message = "提交状态不能为空")
    private Integer submitStatus = 1;

    @Valid
    private List<TbPurchaseOrder> purchaseOrderList;

    /**
     * 创建人
     */
    protected String createBy;
}
